<div class="page-header">
  <h1>Edit Widget</h1>
</div>

<%= form_for(widget, {action: adminWidgetPath({ admin_widget_id: widget.ID }), method: "PUT"}) { %>
  <%= partial("admin/widgets/form.html") %>
  <a href="<%= adminWidgetPath({ admin_widget_id: widget.ID }) %>" class="btn btn-warning" data-confirm="Are you sure?">Cancel</a>
<% } %>
